/**
 * special assistant for taobao
 */ 
(function(window) {
    
    // get client base K
    var K = window['_K_' + {{$T}}];
    if(!K) return;
    
    // var serverData = {{$D}};
    
    var Assistant = {
        
        'pageInfo' : null,
        
        'detailPagePattern' : //,
        
        'genDataURL' : '',
        
        'run' : function() {
            this.getPageGoodsInfo();
            this.loadAssistantBar();
        },
        
        'getPageGoodsInfo' : function() {
            
        },
        
        'loadAssistantBar' : function() {
            var jsonp = K.genJSONP();
            if(!K.isEmpty(this.pageInfo)) {
                window[jsonp] = K.bind(this.showAssistantBar, this);
                K.Resource.loadJS(this.genDataURL + '&jsonp=' + jsonp);
            }
        }
        
        'showAssistantBar' : function() {}
    };
    
    Assistant.run();
    
    K.fire('assistant:loaded');
    
}(this));
